const path = require('path');
const merge = require('webpack-merge');
const utils = require('./webpack.utils');
const base = require('./webpack.common');

module.exports = merge(base, {
  devServer: {
    // contentBase: path.join(__dirname, '../examples'),
    headers: { 'Access-Control-Allow-Origin': '*' },
    hot: true,
    inline: true,
    progress: true,
    port: 3492,
    host: utils.getIpAdress(),
    quiet: true,
    compress: true,
    disableHostCheck: true,
  },
});
